<?php
$content = isset($_GET["content"]) ? $_GET["content"] : "";
session_start();
if (strcmp($content, "cart_hiding_place") == 0) {
	if (!isset($_SESSION["username"])) {
		header("location:main_login.php?content=" . $content);
	}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/css; charset=utf-8" />
		<meta http-equiv="content-language" content="pl">
		<meta http-equiv="Creation-date" content="2011-05-25">
		<meta name="keywords" content="TopShop, sklep internetowy, sklep">
		<meta name="description"
		content="Projekt na zajęcia z Aplikacji Internetowych - sklep internetowy">
		<meta name="author" content="Szymon Winiarz nr 89841">
		<title>TopShop</title>
		<LINK rel="stylesheet" href="style.css" type="text/css">
	</head>
	<body id="shop">
		<table id="container">
			<tr id="header">
				<td></td>
			</tr>
			<tr id="menuBar">
				<td><?php
				require_once ("scripts/menu.php");
				?></td>
			</tr>
			<?php if (isset($_GET["issearching"])) :
			?>
			<tr id="searchForm">
				<td>
				<div class="searchForm">
					<?php require_once("scripts/search_form.php")
					?>
				</div></td>
			</tr>
			<?php endif;?>
			<tr id="mainContent">
				<td><?php
				require_once ("scripts/mainContent.php");
				if (isset($_GET["content"]))
					selectContent($_GET["content"]);
				else
					selectContent("null");
				?></td>
			</tr>
		</table>
	</body>
</html>
